<template>
  <div class="title-byd" :style="{ color: info.extension.fontColor.value }">
    <div class="div-border"></div>
    <div class="div-text">{{ info.extension.title.value }}</div>
  </div>
</template>
<script>
  import { defineComponent } from 'vue'
  import { UiMixin, ChartMixin } from '@ve/mixin'
  export default defineComponent({
    name: 'UiBydModelTitle',
    components: {},
    mixins: [UiMixin, ChartMixin],
    props: {
      info: {
        type: Object,
        default: () => {},
      },
    },
    inject: {
      hasPreview: { default: false },
    },
    created() {
      console.log(this.info)
    },
  })
</script>
<style lang="scss">
  .title-byd {
    padding: 10px;
    position: relative;
    height: 45px;
    width: 170px;
  }
  .div-border {
    position: absolute;
    left: 9px;
    top: 9px;
    width: 170px;
    height: 20px;
    background: inherit;
    background-color: rgba(255, 255, 255, 0);
    box-sizing: border-box;
    border-width: 2px;
    border-style: solid;
    border-color: rgba(248, 181, 20, 1);
    border-top: 0px;
    border-bottom: 0px;
    border-radius: 0px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    line-height: 36px;
  }
  .div-text {
    position: absolute;
    align-self: center;
    padding: 0px 0px 0px 10px;
    box-sizing: border-box;
    width: 100%;
  }
</style>
